#ifndef GETURLIMAGE_H
#define GETURLIMAGE_H

#include <QObject>
#include <QList>
#include <QPixmap>
#include <QNetworkAccessManager>
#include <QUrl>
#include <QNetworkRequest>
#include <QNetworkReply>
typedef struct str_ImageUrl{
    QString name;
    int     subindex;
    QString url;
}StrImageUrl;

typedef struct str_Image{
    QString name;
    int     max;
    QPixmap picture;
}StrImage;
class getUrlImage : public QObject
{
    Q_OBJECT
public:
    explicit getUrlImage(QObject *parent = 0);
    QList<StrImage> TagStrImageList;
    void getImageUrlList(QString string);
    void setImageUrlToList(QString floor,double serialNum,QString url);
    void startgetPictureList();
signals:

public slots:
    void replyFinished(QNetworkReply *reply);
private:
    QNetworkAccessManager *manager;
    int m_getImageUrlIndex;
    QList<StrImageUrl> m_TagStrImageUrlList;
};

#endif // GETURLIMAGE_H
